module.exports = {
    RoomList: [],
    BoardCast: (everyone, msg, members, curClient) => {
        console.log('-------------boardCast-------------')
        if (everyone) {
            members.forEach(player => {
                player.connect.sendText(msg)
            })
        }else{
            members.forEach(player => {
                if (player.id != curClient.id) {
                    player.connect.sendText(msg)
                }                
            })
        }
    }
}